import httpInstance from '@/utils/http'

// 商品详情页
export const getCheckoutAPI = () => {
    return httpInstance({
        url: '/member/order/pre'
    })
}

// 提交订单
export const createOrderAPI = (data) => {
    return httpInstance({
        url: '/member/order',
        method: 'POST',
        data
    })
}